#include<stdio.h>
#include<unistd.h>
#define NUM 100
int main()
{
	char buf[101] = {0};
	char arr[5] = {"-\\|/"};
	for(int i = 0; i < NUM; i++)
	{
		buf[i] = '=';
		if(i<NUM-1)
			buf[i+1] = '>';
		printf("[%-100s][%d%%][%c]\r", buf, i + 1, arr[i%4]);	
		fflush(stdout);
		usleep(60000);
	}
        printf("\n");
	return 0;
}
